get_filename_component(PILLOWRESIZE_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
include(CMakeFindDependencyMacro)

message("CONTENTS OF CMAKE_CURRENT_LIST_FILE: ${CMAKE_CURRENT_LIST_FILE}")

message("CONTENTS OF CMAKE_CURRENT_PILLOWRESIZE_CMAKE_DIR: ${PILLOWRESIZE_CMAKE_DIR}")

find_dependency(OpenCV)


# NOTE: Maybe there could be a fancier approach here but this works nicely.
if(NOT TARGET PillowResize)
    message("Bundling all targets into PILLOWRESIZE_LIBS")
    include("${PILLOWRESIZE_CMAKE_DIR}/PillowResizeTargets.cmake")
    set(PILLOWRESIZE_LIBS PillowResize)    
endif()
